package com.zmj.sy.mom.srv.aps.bean.entity.mes;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Comment("零、组件开报工记录")
@Getter
@Setter
@TableName("tb_mes_work_record")
public class WorkRecord extends BaseEntity {

    private Integer apsWorkDetailId;

    @Comment("类型 1钢板 2零件")
    private Integer type;

    @Comment("零件图号")
    private String plmid;

    @Comment("施工号")
    private String constructNo;

    @Comment("工序编号")
    private String phaseCode;

    @Comment("总零件数量")
    private Integer totalCount;

    @Comment("操作成功零件数量")
    private Integer successCount;

    @Comment("操作失败零件数量")
    private Integer failCount;

    @Comment("操作类型，1开工 2报工")
    private Integer workType;

    @Comment("操作人员")
    private String workStaffCode;

    @Comment("操作时间")
    private LocalDateTime workTime;

    @Comment("操作时间")
    private LocalDate workDate;

    @Comment("操作时间")
    private LocalDateTime startTime;

    @Comment("托盘编号")
    private String palletNumber;

    @Comment("料位编号")
    private String storageNumber;

    @Comment("工位编号")
    private String stationCode;

    @Comment("工作组编号")
    private String groupNumber;

    @Comment("操作ID")
    private Integer operationId;

    @Comment("开工ID")
    private Integer startId;

    @Comment("erp返回状态  0 待返回  1 成功   2 失败")
    private Integer erpState;

    @Comment("扩展字段，当类型为报工，并且工序为分捡时，记录钢板号")
    private String attr;

    @Comment("工单编号")
    private String workOrderCode;

    @Comment("erp物料编号")
    private String erpCode;

    @Comment("erp工作组编号")
    private String erpGroupNumber;

    @Comment("erp工序编号")
    private String erpPhaseCode;

}
